<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.9.1"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>cutex: C:/Users/SHold/Documents/Projekte/libs/cutex/include/qxmousegripband.h Quellcode</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><img alt="Logo" src="logo.png"/></td>
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">cutex
   </div>
   <div id="projectbrief">cute Qt extensions</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Erzeugt von Doxygen 1.9.1 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Suchen','.html');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','Suchen');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(document).ready(function(){initNavTree('qxmousegripband_8h_source.html',''); initResizable(); });
/* @license-end */
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="headertitle">
<div class="title">qxmousegripband.h</div>  </div>
</div><!--header-->
<div class="contents">
<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160;<span class="comment">/***********************************************************************************************************************</span></div>
<div class="line"><a name="l00002"></a><span class="lineno">    2</span>&#160;<span class="comment">**</span></div>
<div class="line"><a name="l00003"></a><span class="lineno">    3</span>&#160;<span class="comment">** Copyright (C) 2016-2021 Partsoft UG (haftungsbeschränkt)</span></div>
<div class="line"><a name="l00004"></a><span class="lineno">    4</span>&#160;<span class="comment">** Contact: https://www.partsoft.de/index.php/kontakt</span></div>
<div class="line"><a name="l00005"></a><span class="lineno">    5</span>&#160;<span class="comment">**</span></div>
<div class="line"><a name="l00006"></a><span class="lineno">    6</span>&#160;<span class="comment">** This file is part of cutex</span></div>
<div class="line"><a name="l00007"></a><span class="lineno">    7</span>&#160;<span class="comment">**</span></div>
<div class="line"><a name="l00008"></a><span class="lineno">    8</span>&#160;<span class="comment">** cutex is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public</span></div>
<div class="line"><a name="l00009"></a><span class="lineno">    9</span>&#160;<span class="comment">** License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later</span></div>
<div class="line"><a name="l00010"></a><span class="lineno">   10</span>&#160;<span class="comment">** version.</span></div>
<div class="line"><a name="l00011"></a><span class="lineno">   11</span>&#160;<span class="comment">**</span></div>
<div class="line"><a name="l00012"></a><span class="lineno">   12</span>&#160;<span class="comment">** cutex is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty</span></div>
<div class="line"><a name="l00013"></a><span class="lineno">   13</span>&#160;<span class="comment">** of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.</span></div>
<div class="line"><a name="l00014"></a><span class="lineno">   14</span>&#160;<span class="comment">**</span></div>
<div class="line"><a name="l00015"></a><span class="lineno">   15</span>&#160;<span class="comment">** You should have received a copy of the GNU Lesser General Public License along with cutex. If not, see</span></div>
<div class="line"><a name="l00016"></a><span class="lineno">   16</span>&#160;<span class="comment">** http://www.gnu.org/licenses.</span></div>
<div class="line"><a name="l00017"></a><span class="lineno">   17</span>&#160;<span class="comment">**</span></div>
<div class="line"><a name="l00018"></a><span class="lineno">   18</span>&#160;<span class="comment">***********************************************************************************************************************/</span></div>
<div class="line"><a name="l00019"></a><span class="lineno">   19</span>&#160; </div>
<div class="line"><a name="l00020"></a><span class="lineno">   20</span>&#160;<span class="preprocessor">#ifndef QXMOUSEGRIPBAND_H</span></div>
<div class="line"><a name="l00021"></a><span class="lineno">   21</span>&#160;<span class="preprocessor">#define QXMOUSEGRIPBAND_H</span></div>
<div class="line"><a name="l00022"></a><span class="lineno">   22</span>&#160; </div>
<div class="line"><a name="l00023"></a><span class="lineno">   23</span>&#160;<span class="preprocessor">#include &quot;cutex.h&quot;</span></div>
<div class="line"><a name="l00024"></a><span class="lineno">   24</span>&#160; </div>
<div class="line"><a name="l00025"></a><span class="lineno">   25</span>&#160;<span class="keyword">namespace </span>cutex {</div>
<div class="line"><a name="l00026"></a><span class="lineno">   26</span>&#160; </div>
<div class="line"><a name="l00036"></a><span class="lineno"><a class="line" href="classcutex_1_1_qx_mouse_grip_band.html">   36</a></span>&#160;<span class="keyword">class </span><a class="code" href="classcutex_1_1_qx_mouse_grip_band.html">QxMouseGripBand</a> : <span class="keyword">public</span> QWidget</div>
<div class="line"><a name="l00037"></a><span class="lineno">   37</span>&#160;{</div>
<div class="line"><a name="l00038"></a><span class="lineno">   38</span>&#160;    Q_OBJECT</div>
<div class="line"><a name="l00039"></a><span class="lineno">   39</span>&#160; </div>
<div class="line"><a name="l00040"></a><span class="lineno">   40</span>&#160;<span class="keyword">public</span>:</div>
<div class="line"><a name="l00041"></a><span class="lineno">   41</span>&#160;    <a class="code" href="classcutex_1_1_qx_mouse_grip_band.html#abd48bba5e5bd82ad7a32b26feea3ad9c">QxMouseGripBand</a>(QWidget *parent = <span class="keyword">nullptr</span>);</div>
<div class="line"><a name="l00042"></a><span class="lineno">   42</span>&#160;    <span class="keywordtype">bool</span> <a class="code" href="classcutex_1_1_qx_mouse_grip_band.html#ae35b317825329f67ffbe3c07ffab7799">isMoveEnabled</a>() <span class="keyword">const</span>;</div>
<div class="line"><a name="l00043"></a><span class="lineno">   43</span>&#160;    <span class="keywordtype">void</span> <a class="code" href="classcutex_1_1_qx_mouse_grip_band.html#ac00f11fba919e152136d9a2d6ffaaf64">setMoveEnabled</a>(<span class="keywordtype">bool</span> enabled);</div>
<div class="line"><a name="l00044"></a><span class="lineno">   44</span>&#160;    QSize <a class="code" href="classcutex_1_1_qx_mouse_grip_band.html#ac0d2c87162967eb74c0b40e9c3efd922">gripSize</a>() <span class="keyword">const</span>;</div>
<div class="line"><a name="l00045"></a><span class="lineno">   45</span>&#160;    <span class="keywordtype">void</span> <a class="code" href="classcutex_1_1_qx_mouse_grip_band.html#a98b51705f4ef4a0a629b24f3fa1e2167">setGripSize</a>(<span class="keyword">const</span> QSize &amp;size);</div>
<div class="line"><a name="l00046"></a><span class="lineno">   46</span>&#160;    QColor <a class="code" href="classcutex_1_1_qx_mouse_grip_band.html#a903437323123fe45109ae8ae5694714e">gripColor</a>() <span class="keyword">const</span>;</div>
<div class="line"><a name="l00047"></a><span class="lineno">   47</span>&#160;    <span class="keywordtype">void</span> <a class="code" href="classcutex_1_1_qx_mouse_grip_band.html#a460c4a6f27007d332565f74d4ede7ee6">setGripColor</a>(<span class="keyword">const</span> QColor &amp;color);</div>
<div class="line"><a name="l00048"></a><span class="lineno">   48</span>&#160; </div>
<div class="line"><a name="l00049"></a><span class="lineno">   49</span>&#160;<span class="keyword">protected</span>:</div>
<div class="line"><a name="l00050"></a><span class="lineno">   50</span>&#160;    <span class="keyword">virtual</span> <span class="keywordtype">void</span> paintEvent(QPaintEvent *event);</div>
<div class="line"><a name="l00051"></a><span class="lineno">   51</span>&#160;    <span class="keyword">virtual</span> <span class="keywordtype">void</span> mousePressEvent(QMouseEvent *event);</div>
<div class="line"><a name="l00052"></a><span class="lineno">   52</span>&#160;    <span class="keyword">virtual</span> <span class="keywordtype">void</span> mouseMoveEvent(QMouseEvent *event);</div>
<div class="line"><a name="l00053"></a><span class="lineno">   53</span>&#160;    <span class="keyword">virtual</span> <span class="keywordtype">void</span> mouseReleaseEvent(QMouseEvent *event);</div>
<div class="line"><a name="l00054"></a><span class="lineno">   54</span>&#160; </div>
<div class="line"><a name="l00055"></a><span class="lineno">   55</span>&#160;<span class="keyword">private</span>:</div>
<div class="line"><a name="l00056"></a><span class="lineno">   56</span>&#160;    <span class="keyword">enum</span> Grip { NoGrip = 0, BottomRight, TopLeft, TopMiddle, TopRight, Left, Right, BottomLeft, BottomMiddle };</div>
<div class="line"><a name="l00057"></a><span class="lineno">   57</span>&#160; </div>
<div class="line"><a name="l00058"></a><span class="lineno">   58</span>&#160;<span class="keyword">private</span>:</div>
<div class="line"><a name="l00059"></a><span class="lineno">   59</span>&#160;    <span class="keywordtype">bool</span> m_moveEnabled;</div>
<div class="line"><a name="l00060"></a><span class="lineno">   60</span>&#160;    QSize m_gripSize;</div>
<div class="line"><a name="l00061"></a><span class="lineno">   61</span>&#160;    QColor m_gripColor;</div>
<div class="line"><a name="l00062"></a><span class="lineno">   62</span>&#160;    QPointF m_dragPos;</div>
<div class="line"><a name="l00063"></a><span class="lineno">   63</span>&#160;    Grip m_dragGrip;</div>
<div class="line"><a name="l00064"></a><span class="lineno">   64</span>&#160; </div>
<div class="line"><a name="l00065"></a><span class="lineno">   65</span>&#160;<span class="keyword">private</span>:</div>
<div class="line"><a name="l00066"></a><span class="lineno">   66</span>&#160;    QMap&lt;Grip, QRectF&gt; gripPositions() <span class="keyword">const</span>;</div>
<div class="line"><a name="l00067"></a><span class="lineno">   67</span>&#160; </div>
<div class="line"><a name="l00068"></a><span class="lineno">   68</span>&#160;signals:</div>
<div class="line"><a name="l00069"></a><span class="lineno"><a class="line" href="classcutex_1_1_qx_mouse_grip_band.html#a5d3f06638b52b7c332ced6e70f863d07">   69</a></span>&#160;    <span class="keywordtype">void</span> <a class="code" href="classcutex_1_1_qx_mouse_grip_band.html#a5d3f06638b52b7c332ced6e70f863d07">resized</a>(<span class="keyword">const</span> QRect &amp;rect);</div>
<div class="line"><a name="l00070"></a><span class="lineno"><a class="line" href="classcutex_1_1_qx_mouse_grip_band.html#ab2695a85f71a98dc5d81e876824695a0">   70</a></span>&#160;    <span class="keywordtype">void</span> <a class="code" href="classcutex_1_1_qx_mouse_grip_band.html#ab2695a85f71a98dc5d81e876824695a0">resizeFinished</a>(<span class="keyword">const</span> QRect &amp;rect);</div>
<div class="line"><a name="l00071"></a><span class="lineno"><a class="line" href="classcutex_1_1_qx_mouse_grip_band.html#a05272a44fb028942b747e9983fe7c5de">   71</a></span>&#160;    <span class="keywordtype">void</span> <a class="code" href="classcutex_1_1_qx_mouse_grip_band.html#a05272a44fb028942b747e9983fe7c5de">moved</a>(<span class="keyword">const</span> QRect &amp;rect);</div>
<div class="line"><a name="l00072"></a><span class="lineno"><a class="line" href="classcutex_1_1_qx_mouse_grip_band.html#a69661e264b156e8123e42bb764e625c4">   72</a></span>&#160;    <span class="keywordtype">void</span> <a class="code" href="classcutex_1_1_qx_mouse_grip_band.html#a69661e264b156e8123e42bb764e625c4">moveFinished</a>(<span class="keyword">const</span> QRect &amp;rect);</div>
<div class="line"><a name="l00073"></a><span class="lineno">   73</span>&#160;};</div>
<div class="line"><a name="l00074"></a><span class="lineno">   74</span>&#160; </div>
<div class="line"><a name="l00075"></a><span class="lineno">   75</span>&#160;} <span class="comment">// namespace</span></div>
<div class="line"><a name="l00076"></a><span class="lineno">   76</span>&#160; </div>
<div class="line"><a name="l00077"></a><span class="lineno">   77</span>&#160;<span class="preprocessor">#endif </span><span class="comment">// QXMOUSEGRIPBAND_H</span></div>
<div class="ttc" id="aclasscutex_1_1_qx_mouse_grip_band_html"><div class="ttname"><a href="classcutex_1_1_qx_mouse_grip_band.html">cutex::QxMouseGripBand</a></div><div class="ttdoc">Die Klasse QxMouseGripBand kann zum Verschieben, bzw. zur Größenänderung von Widgets verwendet werden...</div><div class="ttdef"><b>Definition:</b> qxmousegripband.h:37</div></div>
<div class="ttc" id="aclasscutex_1_1_qx_mouse_grip_band_html_a05272a44fb028942b747e9983fe7c5de"><div class="ttname"><a href="classcutex_1_1_qx_mouse_grip_band.html#a05272a44fb028942b747e9983fe7c5de">cutex::QxMouseGripBand::moved</a></div><div class="ttdeci">void moved(const QRect &amp;rect)</div></div>
<div class="ttc" id="aclasscutex_1_1_qx_mouse_grip_band_html_a460c4a6f27007d332565f74d4ede7ee6"><div class="ttname"><a href="classcutex_1_1_qx_mouse_grip_band.html#a460c4a6f27007d332565f74d4ede7ee6">cutex::QxMouseGripBand::setGripColor</a></div><div class="ttdeci">void setGripColor(const QColor &amp;color)</div><div class="ttdef"><b>Definition:</b> qxmousegripband.cpp:85</div></div>
<div class="ttc" id="aclasscutex_1_1_qx_mouse_grip_band_html_a5d3f06638b52b7c332ced6e70f863d07"><div class="ttname"><a href="classcutex_1_1_qx_mouse_grip_band.html#a5d3f06638b52b7c332ced6e70f863d07">cutex::QxMouseGripBand::resized</a></div><div class="ttdeci">void resized(const QRect &amp;rect)</div></div>
<div class="ttc" id="aclasscutex_1_1_qx_mouse_grip_band_html_a69661e264b156e8123e42bb764e625c4"><div class="ttname"><a href="classcutex_1_1_qx_mouse_grip_band.html#a69661e264b156e8123e42bb764e625c4">cutex::QxMouseGripBand::moveFinished</a></div><div class="ttdeci">void moveFinished(const QRect &amp;rect)</div></div>
<div class="ttc" id="aclasscutex_1_1_qx_mouse_grip_band_html_a903437323123fe45109ae8ae5694714e"><div class="ttname"><a href="classcutex_1_1_qx_mouse_grip_band.html#a903437323123fe45109ae8ae5694714e">cutex::QxMouseGripBand::gripColor</a></div><div class="ttdeci">QColor gripColor() const</div><div class="ttdef"><b>Definition:</b> qxmousegripband.cpp:77</div></div>
<div class="ttc" id="aclasscutex_1_1_qx_mouse_grip_band_html_a98b51705f4ef4a0a629b24f3fa1e2167"><div class="ttname"><a href="classcutex_1_1_qx_mouse_grip_band.html#a98b51705f4ef4a0a629b24f3fa1e2167">cutex::QxMouseGripBand::setGripSize</a></div><div class="ttdeci">void setGripSize(const QSize &amp;size)</div><div class="ttdef"><b>Definition:</b> qxmousegripband.cpp:66</div></div>
<div class="ttc" id="aclasscutex_1_1_qx_mouse_grip_band_html_ab2695a85f71a98dc5d81e876824695a0"><div class="ttname"><a href="classcutex_1_1_qx_mouse_grip_band.html#ab2695a85f71a98dc5d81e876824695a0">cutex::QxMouseGripBand::resizeFinished</a></div><div class="ttdeci">void resizeFinished(const QRect &amp;rect)</div></div>
<div class="ttc" id="aclasscutex_1_1_qx_mouse_grip_band_html_abd48bba5e5bd82ad7a32b26feea3ad9c"><div class="ttname"><a href="classcutex_1_1_qx_mouse_grip_band.html#abd48bba5e5bd82ad7a32b26feea3ad9c">cutex::QxMouseGripBand::QxMouseGripBand</a></div><div class="ttdeci">QxMouseGripBand(QWidget *parent=nullptr)</div><div class="ttdef"><b>Definition:</b> qxmousegripband.cpp:27</div></div>
<div class="ttc" id="aclasscutex_1_1_qx_mouse_grip_band_html_ac00f11fba919e152136d9a2d6ffaaf64"><div class="ttname"><a href="classcutex_1_1_qx_mouse_grip_band.html#ac00f11fba919e152136d9a2d6ffaaf64">cutex::QxMouseGripBand::setMoveEnabled</a></div><div class="ttdeci">void setMoveEnabled(bool enabled)</div><div class="ttdef"><b>Definition:</b> qxmousegripband.cpp:50</div></div>
<div class="ttc" id="aclasscutex_1_1_qx_mouse_grip_band_html_ac0d2c87162967eb74c0b40e9c3efd922"><div class="ttname"><a href="classcutex_1_1_qx_mouse_grip_band.html#ac0d2c87162967eb74c0b40e9c3efd922">cutex::QxMouseGripBand::gripSize</a></div><div class="ttdeci">QSize gripSize() const</div><div class="ttdef"><b>Definition:</b> qxmousegripband.cpp:58</div></div>
<div class="ttc" id="aclasscutex_1_1_qx_mouse_grip_band_html_ae35b317825329f67ffbe3c07ffab7799"><div class="ttname"><a href="classcutex_1_1_qx_mouse_grip_band.html#ae35b317825329f67ffbe3c07ffab7799">cutex::QxMouseGripBand::isMoveEnabled</a></div><div class="ttdeci">bool isMoveEnabled() const</div><div class="ttdef"><b>Definition:</b> qxmousegripband.cpp:42</div></div>
</div><!-- fragment --></div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="dir_d44c64559bbebec7f509842c48db8b23.html">include</a></li><li class="navelem"><b>qxmousegripband.h</b></li>
    <li class="footer">Erzeugt von <a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.1 </li>
  </ul>
</div>
</body>
</html>
